import { service } from './request';

export function selectTypeAll(params = {}) {
  return service({
    url: '/type/selectAll',
    method: 'get',
    params: params
  });
}

export function selectForType(params = {}) {
  return service({
    url: '/type/selectForType',
    method: 'get',
    params: params
  });
}

export function deleteType(data) {
  return service({
    url: '/type/delete',
    method: 'post',
    data: data
  });
}

export function insertType(data) {
  return service({
    url: '/type/insert',
    method: 'post',
    data: data
  });
}
